package com.example.demo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.joda.time.DateTime;

@Data
@TableName("order_item")
public class OrderItem {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("order_id")
    private String orderId;
    @TableField("product_id")
    private Long productId;
    @TableField("cart_item_id")
    private Long cartItemId;
    @TableField("quantity")
    private Integer quantity;
    @TableField("cost")
    private Double cost;
    @TableField("status")
    private Integer status;
    @TableField("create_time")
    private DateTime createTime;
    @TableField("pay_time")
    private DateTime payTime;
    @TableField("update_time")
    private DateTime updateTime;
}
